/**
 * Mock response data for Polymarket positions API endpoints
 * Endpoints: /positions?user&redeemable=false and /positions?user&redeemable=true
 */

import { PROXY_WALLET_ADDRESS } from './polymarket-constants';
// endpoint: /positions?user&redeemable=false
export const POLYMARKET_CURRENT_POSITIONS_RESPONSE = [
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '110743925263777693447488608878982152642205002490046349037358337248548507433643',
    conditionId:
      '0x12899fadc50f47afa5f8e145380a9c6f0262d75ea12749bbbcb4f8b50f96cf6b',
    size: 50,
    avgPrice: 0.58,
    initialValue: 29,
    currentValue: 30.75,
    cashPnl: 1.7500000000000038,
    percentPnl: 6.034482758620703,
    totalBought: 50,
    realizedPnl: 0,
    percentRealizedPnl: 6.03448275862069,
    curPrice: 0.615,
    redeemable: false,
    mergeable: false,
    title: 'Spurs vs. Pelicans',
    slug: 'nba-sas-nop-2025-10-24',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/super+cool+basketball+in+red+and+blue+wow.png',
    eventId: '62553',
    eventSlug: 'nba-sas-nop-2025-10-24',
    outcome: 'Spurs',
    outcomeIndex: 0,
    oppositeOutcome: 'Pelicans',
    oppositeAsset:
      '38489710206351002266036612280230748165102516187175290608628298208123746725814',
    endDate: '2025-10-25',
    negativeRisk: false,
  },
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '33945469250963963541781051637999677727672635213493648594066577298999471399137',
    conditionId:
      '0xebddfcf7b4401dade8b4031770a1ab942b01854f3bed453d5df9425cd9f211a9',
    size: 4.247989,
    avgPrice: 0.870999,
    initialValue: 3.699994171011,
    currentValue: 3.9145218635,
    cashPnl: 0.21452769248900003,
    percentPnl: 5.798054877215704,
    totalBought: 4.247989,
    realizedPnl: 0,
    percentRealizedPnl: 5.798054877215704,
    curPrice: 0.9215,
    redeemable: false,
    mergeable: false,
    title: 'Will Zohran Mamdani win the 2025 NYC mayoral election?',
    slug: 'will-zohran-mamdani-win-the-2025-nyc-mayoral-election',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/will-zohran-mamdani-win-the-2025-nyc-mayoral-election-EscSJQTT6hWg.jpg',
    eventId: '23246',
    eventSlug: 'new-york-city-mayoral-election',
    outcome: 'Yes',
    outcomeIndex: 0,
    oppositeOutcome: 'No',
    oppositeAsset:
      '105832362350788616148612362642992403996714020918558917275151746177525518770551',
    endDate: '2025-11-04',
    negativeRisk: true,
  },
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '11584273833068499329017832956188664326032555278943683999231427554688326830185',
    conditionId:
      '0x1d395b8dea9dd429fbce85f8b8cbd5aa85ec8a2e8980755756be3eec03da5b9a',
    size: 15.384612,
    avgPrice: 0.129999,
    initialValue: 1.999984175388,
    currentValue: 2.3846148599999997,
    cashPnl: 0.3846306846119999,
    percentPnl: 19.23168639758767,
    totalBought: 15.384612,
    realizedPnl: 0,
    percentRealizedPnl: 19.23168639758767,
    curPrice: 0.155,
    redeemable: false,
    mergeable: false,
    title: 'Will the Kansas City Chiefs win Super Bowl 2026?',
    slug: 'will-the-kansas-city-chiefs-win-super-bowl-2026',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/NFL+Team+Logos/KC.png',
    eventId: '23656',
    eventSlug: 'super-bowl-champion-2026-731',
    outcome: 'Yes',
    outcomeIndex: 0,
    oppositeOutcome: 'No',
    oppositeAsset:
      '53459551166014752936660975821953116185386685262626945530676156366058725390297',
    endDate: '2026-02-08',
    negativeRisk: true,
  },
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '72685162394098505217895638060393901041260225434938300730127268362092284806692',
    conditionId:
      '0xc40cbb2d7f5d2c43c624bd5b1d0b18cd3d0682b3937363ec7c1ad1d13bee107e',
    size: 21.513512,
    avgPrice: 0.116205,
    initialValue: 2.49997766196,
    currentValue: 1.39837828,
    cashPnl: -1.10159938196,
    percentPnl: -44.06436900305495,
    totalBought: 21.513512,
    realizedPnl: 0,
    percentRealizedPnl: -44.06436900305495,
    curPrice: 0.065,
    redeemable: false,
    mergeable: false,
    title: 'Will Andrew Cuomo win the 2025 NYC mayoral election?',
    slug: 'will-andrew-cuomo-win-the-2025-nyc-mayoral-election',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/will-andrew-cuomo-win-the-2025-nyc-mayoral-election-CFbNR1wG_T2X.jpg',
    eventId: '23246',
    eventSlug: 'new-york-city-mayoral-election',
    outcome: 'Yes',
    outcomeIndex: 0,
    oppositeOutcome: 'No',
    oppositeAsset:
      '104468181147316868388088006861839293041095272602974154655578369735976654024471',
    endDate: '2025-11-04',
    negativeRisk: true,
  },
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '19740329944962592380580142050369523795065853055987745520766432334608119837023',
    conditionId:
      '0x39d45b454dcf932767962ad9cbd858c5a6ec21d4d48318a484775b2e83264467',
    size: 8.333332,
    avgPrice: 0.119999,
    initialValue: 0.999991506668,
    currentValue: 0.95833318,
    cashPnl: -0.041658326667999845,
    percentPnl: -4.165868048900393,
    totalBought: 8.333332,
    realizedPnl: 0,
    percentRealizedPnl: -4.165868048900404,
    curPrice: 0.115,
    redeemable: false,
    mergeable: false,
    title: 'Will the Buffalo Bills win Super Bowl 2026?',
    slug: 'will-the-buffalo-bills-win-super-bowl-2026',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/NFL+Team+Logos/BUF.png',
    eventId: '23656',
    eventSlug: 'super-bowl-champion-2026-731',
    outcome: 'Yes',
    outcomeIndex: 0,
    oppositeOutcome: 'No',
    oppositeAsset:
      '20830052946262425318347897889378986218676355013257249888938222536677638197588',
    endDate: '2026-02-08',
    negativeRisk: true,
  },
];

export const POLYMARKET_NEW_OPEN_POSITION_CELTICS_NETS_RESPONSE = [
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '51851880223290407825872150827934296608070009371891114025629582819868766043137',
    conditionId:
      '0x81daa857b8fa34cd3627c8cdbe5d92ea98756bcbe1e5cfcfffb94754e4d5ed86',
    size: 11.904758,
    avgPrice: 0.83,
    initialValue: 10,
    currentValue: 10.7142822,
    cashPnl: 0.83333306,
    percentPnl: 8.433734939,
    totalBought: 11.904758,
    realizedPnl: 0,
    percentRealizedPnl: 0,
    curPrice: 0.9,
    redeemable: false,
    mergeable: false,
    title: 'Celtics vs. Nets',
    slug: 'nba-bos-bkn-2025-11-18',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/super+cool+basketball+in+red+and+blue+wow.png',
    eventId: '79682',
    eventSlug: 'nba-bos-bkn-2025-11-18',
    outcome: 'Celtics',
    outcomeIndex: 0,
    oppositeOutcome: 'Nets',
    oppositeAsset:
      '51090123154876409384652748958994213129207000557350215937559106819875795938227',
    endDate: '2025-11-19',
    negativeRisk: false,
  },
];
/*
*endpoint: /positions?user&redeemable=true
This contains all lost positions in resolved markets (no winning positions)
*/
export const POLYMARKET_RESOLVED_LOST_POSITIONS_RESPONSE = [
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '41363179555803964193865225014057621561864035628882209196629573070642914610300',
    conditionId:
      '0x626a49d9b82acaa9e86760c0cddad6a71aceefbef72f4f1c154ff8e358ae88c1',
    size: 8,
    avgPrice: 0.66,
    initialValue: 5.28,
    currentValue: 0,
    cashPnl: -5.28,
    percentPnl: -100,
    totalBought: 8,
    realizedPnl: 0,
    percentRealizedPnl: -100,
    curPrice: 0,
    redeemable: true,
    mergeable: false,
    title: 'Bills vs. Falcons',
    slug: 'nfl-buf-atl-2025-10-13',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/nfl.png',
    eventId: '54821',
    eventSlug: 'nfl-buf-atl-2025-10-13',
    outcome: 'Bills',
    outcomeIndex: 0,
    oppositeOutcome: 'Falcons',
    oppositeAsset:
      '51515706493006686915467360326198286147336826978259321854447558951715769963574',
    endDate: '2025-10-20',
    negativeRisk: false,
  },
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '46624220931236200146764216211260664534880387976574799044898986678450384828259',
    conditionId:
      '0xd55353d086e0d5d62383e0ff538c721eab4969a426d6404e2134f59a374894f4',
    size: 5,
    avgPrice: 0.31,
    initialValue: 1.55,
    currentValue: 0,
    cashPnl: -1.55,
    percentPnl: -100,
    totalBought: 5,
    realizedPnl: 0,
    percentRealizedPnl: -100,
    curPrice: 0,
    redeemable: true,
    mergeable: false,
    title: '49ers vs. Buccaneers',
    slug: 'nfl-sf-tb-2025-10-12',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/nfl.png',
    eventId: '54359',
    eventSlug: 'nfl-sf-tb-2025-10-12',
    outcome: '49ers',
    outcomeIndex: 0,
    oppositeOutcome: 'Buccaneers',
    oppositeAsset:
      '79346815906876535433763192434899284782424577339860924382805427571458469974312',
    endDate: '2025-10-19',
    negativeRisk: false,
  },
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '48796443692893205230111782877212155706069076666275568314621241534505572363580',
    conditionId:
      '0x59d4803810920f86bcc24ab5ec8d83fe7255c351d1c229fe0cf9b652283aac0a',
    size: 6.153845,
    avgPrice: 0.649999,
    initialValue: 3.999993096155,
    currentValue: 0,
    cashPnl: -3.999993096155,
    percentPnl: -100,
    totalBought: 6.153845,
    realizedPnl: 0,
    percentRealizedPnl: -100,
    curPrice: 0,
    redeemable: true,
    mergeable: false,
    title: 'Chiefs vs. Jaguars',
    slug: 'nfl-kc-jax-2025-10-06',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/nfl.png',
    eventId: '51348',
    eventSlug: 'nfl-kc-jax-2025-10-06',
    outcome: 'Chiefs',
    outcomeIndex: 0,
    oppositeOutcome: 'Jaguars',
    oppositeAsset:
      '27924733395446062545587979072749182408671191217777211201081876786090294186139',
    endDate: '2025-10-14',
    negativeRisk: false,
  },
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '58716612325563573083695434995001914264547326571961868286450107533347570622844',
    conditionId:
      '0xbf97a1420a810787dc6ffa2810f1d1d91977267e542b8685ecd21e622567a46c',
    size: 6,
    avgPrice: 0.66,
    initialValue: 3.96,
    currentValue: 0,
    cashPnl: -3.96,
    percentPnl: -100,
    totalBought: 6,
    realizedPnl: 0,
    percentRealizedPnl: -100,
    curPrice: 0,
    redeemable: true,
    mergeable: true,
    title: 'Blue Jays vs. Mariners',
    slug: 'mlb-tor-sea-2025-10-17',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/Repetitive-markets/MLB.jpg',
    eventId: '60362',
    eventSlug: 'mlb-tor-sea-2025-10-17',
    outcome: 'Blue Jays',
    outcomeIndex: 0,
    oppositeOutcome: 'Mariners',
    oppositeAsset:
      '42939601076825532550105235762150970758026025994237741085435131668957359315522',
    endDate: '2025-10-24',
    negativeRisk: false,
  },
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '74764475795121623056006185669021820483304079465092865059622185495692711341808',
    conditionId:
      '0xb4bba8acb4a85c9f4ccd0eec6393e746c0176d271c2d0e52792968a05dd64b0c',
    size: 6,
    avgPrice: 0.7,
    initialValue: 4.2,
    currentValue: 0,
    cashPnl: -4.2,
    percentPnl: -100,
    totalBought: 6,
    realizedPnl: 0,
    percentRealizedPnl: -100,
    curPrice: 0,
    redeemable: true,
    mergeable: false,
    title: 'Bears vs. Commanders',
    slug: 'nfl-chi-was-2025-10-13',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/nfl.png',
    eventId: '54822',
    eventSlug: 'nfl-chi-was-2025-10-13',
    outcome: 'Commanders',
    outcomeIndex: 1,
    oppositeOutcome: 'Bears',
    oppositeAsset:
      '18959108866826349833783810516216172919384800898438031659526495847821857557528',
    endDate: '2025-10-21',
    negativeRisk: false,
  },
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '75867628776888307820276572545786747084452180200045110793369927488887823537305',
    conditionId:
      '0x32f99548d831beb65fc38bdcf55f8420b72edfe4309f6853c4070ee912c95146',
    size: 6,
    avgPrice: 0.61,
    initialValue: 3.66,
    currentValue: 0,
    cashPnl: -3.66,
    percentPnl: -100,
    totalBought: 6,
    realizedPnl: 0,
    percentRealizedPnl: -100,
    curPrice: 0,
    redeemable: true,
    mergeable: false,
    title: 'Will Liverpool win on 2025-10-19?',
    slug: 'epl-liv-mun-2025-10-19-liv',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/epl_liverpool.png',
    eventId: '54801',
    eventSlug: 'epl-liv-mun-2025-10-19',
    outcome: 'Yes',
    outcomeIndex: 0,
    oppositeOutcome: 'No',
    oppositeAsset:
      '1518176187726137213399987489736150317643612715582514423876167773667823666734',
    endDate: '2025-10-19',
    negativeRisk: true,
  },
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '7829405558695415098933992896472306188032145335278437157264989840913307976331',
    conditionId:
      '0x49afdc2072ba5ddea5f41258aae271afec1f5ccef877f2d1a2f5e8e0f5c3adb8',
    size: 6,
    avgPrice: 0.65,
    initialValue: 3.9,
    currentValue: 0,
    cashPnl: -3.9,
    percentPnl: -100,
    totalBought: 6,
    realizedPnl: 0,
    percentRealizedPnl: -100,
    curPrice: 0,
    redeemable: true,
    mergeable: false,
    title: 'Louisville vs. Miami',
    slug: 'cfb-lou-mia-2025-10-17',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/espn+college+football+logo.png',
    eventId: '59326',
    eventSlug: 'cfb-lou-mia-2025-10-17',
    outcome: 'Miami',
    outcomeIndex: 1,
    oppositeOutcome: 'Louisville',
    oppositeAsset:
      '28158942024648163229035544972069470900608454264056085385448902544103259948806',
    endDate: '2025-10-17',
    negativeRisk: false,
  },
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '92211847866036284178115262117996225131130400931576952813579819530679958860633',
    conditionId:
      '0xe0d9de962e0a53a2276c8ac5b192fd97e1d2ec74a386d2d7022b83ae86464489',
    size: 10,
    avgPrice: 0.49,
    initialValue: 4.9,
    currentValue: 0,
    cashPnl: -4.9,
    percentPnl: -100,
    totalBought: 10,
    realizedPnl: 0,
    percentRealizedPnl: -100,
    curPrice: 0,
    redeemable: true,
    mergeable: false,
    title: 'Commanders vs. Cowboys',
    slug: 'nfl-was-dal-2025-10-19',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/nfl.png',
    eventId: '58319',
    eventSlug: 'nfl-was-dal-2025-10-19',
    outcome: 'Commanders',
    outcomeIndex: 0,
    oppositeOutcome: 'Cowboys',
    oppositeAsset:
      '90688104308398604490491533833380940077326096302413157013931967092961082934909',
    endDate: '2025-10-26',
    negativeRisk: false,
  },
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '109087901716216053417250825808952696497260040360991897081910571476476628813141',
    conditionId:
      '0x102c98f54c6d5be80d8380ce55a93ae10bc4fd285729b3aa33a6712484c9375a',
    size: 6,
    avgPrice: 0.5,
    initialValue: 3,
    currentValue: 0,
    cashPnl: -3,
    percentPnl: -100,
    totalBought: 6,
    realizedPnl: 0,
    percentRealizedPnl: -100,
    curPrice: 0,
    redeemable: true,
    mergeable: false,
    title: 'Seahawks vs. Jaguars',
    slug: 'nfl-sea-jax-2025-10-12',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/nfl.png',
    eventId: '54353',
    eventSlug: 'nfl-sea-jax-2025-10-12',
    outcome: 'Jaguars',
    outcomeIndex: 1,
    oppositeOutcome: 'Seahawks',
    oppositeAsset:
      '65181387213104612842621300379569623249928506487478220404378778395379355468250',
    endDate: '2025-10-19',
    negativeRisk: false,
  },
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '9931511623386788748062999918458400455394427682853854329651440440898881487005',
    conditionId:
      '0xa7aeaaae036e316c1e7e0542fa31595117dee8735ef88b3d9ceda85b1b3d1534',
    size: 11.363635,
    avgPrice: 0.439999,
    initialValue: 4.999988036365,
    currentValue: 0,
    cashPnl: -4.999988036365,
    percentPnl: -100,
    totalBought: 11.363635,
    realizedPnl: 0,
    percentRealizedPnl: -100,
    curPrice: 0,
    redeemable: true,
    mergeable: false,
    title: 'Lions vs. Chiefs',
    slug: 'nfl-det-kc-2025-10-12',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/nfl.png',
    eventId: '54360',
    eventSlug: 'nfl-det-kc-2025-10-12',
    outcome: 'Lions',
    outcomeIndex: 0,
    oppositeOutcome: 'Chiefs',
    oppositeAsset:
      '4304388993272216701489866547678056659032667044088807871920319001769502312196',
    endDate: '2025-10-20',
    negativeRisk: false,
  },
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '24015698128303510188743058335387340167078113750444014281026927870122555736558',
    conditionId:
      '0xc5ddf8c0ccb9504289c7d12ae3995e262f71b91f9eacfaf1e6d270ede932ef33',
    size: 10.344826,
    avgPrice: 0.289999,
    initialValue: 2.999989195174,
    currentValue: 0,
    cashPnl: -2.9999891951740003,
    percentPnl: -100,
    totalBought: 10.344826,
    realizedPnl: 0,
    percentRealizedPnl: -100,
    curPrice: 0,
    redeemable: true,
    mergeable: false,
    title: 'Broncos vs. Jets',
    slug: 'nfl-den-nyj-2025-10-12',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/nfl.png',
    eventId: '54349',
    eventSlug: 'nfl-den-nyj-2025-10-12',
    outcome: 'Jets',
    outcomeIndex: 1,
    oppositeOutcome: 'Broncos',
    oppositeAsset:
      '86192057611122246511563653509192966169513312957180910360241289053249649036697',
    endDate: '2025-10-19',
    negativeRisk: false,
  },
];

// Separate mock data for winning positions that can be claimed
export const POLYMARKET_WINNING_POSITIONS_RESPONSE = [
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '42939601076825532550105235762150970758026025994237741085435131668957359315522',
    conditionId:
      '0xbf97a1420a810787dc6ffa2810f1d1d91977267e542b8685ecd21e622567a46c',
    size: 10,
    avgPrice: 0.34,
    initialValue: 3.4,
    currentValue: 15,
    cashPnl: 15,
    percentPnl: 441.1764705882353,
    totalBought: 10,
    realizedPnl: 0,
    percentRealizedPnl: 441.1764705882353,
    curPrice: 1,
    redeemable: true,
    mergeable: true,
    title: 'Blue Jays vs. Mariners',
    slug: 'mlb-tor-sea-2025-10-17',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/Repetitive-markets/MLB.jpg',
    eventId: '60362',
    eventSlug: 'mlb-tor-sea-2025-10-17',
    outcome: 'Mariners',
    outcomeIndex: 1,
    oppositeOutcome: 'Blue Jays',
    oppositeAsset:
      '58716612325563573083695434995001914264547326571961868286450107533347570622844',
    endDate: '2025-10-24',
    negativeRisk: false,
  },
  {
    proxyWallet: PROXY_WALLET_ADDRESS,
    asset:
      '59150913444791937395008354786292078116254188377353450247628754012368453377076',
    conditionId:
      '0xa13312b2cc64532aed2a446b66e5a2d8d8b440b24d7213d33b6dae6a58c33223',
    size: 5,
    avgPrice: 0.32,
    initialValue: 1.6,
    currentValue: 5,
    cashPnl: 3.4,
    percentPnl: 212.5,
    totalBought: 5,
    realizedPnl: 0,
    percentRealizedPnl: 212.5,
    curPrice: 1,
    redeemable: true,
    mergeable: false,
    title: 'Steelers vs. Bengals',
    slug: 'nfl-pit-cin-2025-10-16',
    icon: 'https://polymarket-upload.s3.us-east-2.amazonaws.com/nfl.png',
    eventId: '58288',
    eventSlug: 'nfl-pit-cin-2025-10-16',
    outcome: 'Bengals',
    outcomeIndex: 1,
    oppositeOutcome: 'Steelers',
    oppositeAsset:
      '43316042420532542168140438864501868551184980388178338105513819372697332591887',
    endDate: '2025-10-24',
    negativeRisk: false,
  },
];

// Mock function to combine current positions with winning positions. This will trigger the Claimable Positions and activate the claim button
export const createPositionsWithWinnings = (
  includeWinnings: boolean = false,
) => {
  const basePositions = [...POLYMARKET_CURRENT_POSITIONS_RESPONSE];

  if (includeWinnings) {
    return [...basePositions, ...POLYMARKET_WINNING_POSITIONS_RESPONSE];
  }

  return basePositions;
};
